//
//  LoginCityModel.swift
//  GLUZSwift
//
//  Created by xyanl on 2025/3/7.
//  Copyright © 2025 考拉🐨. All rights reserved.
//

import UIKit
import HandyJSON

class LoginCityModel: BaseModel {
    
    /// id， -2：请选择，-1：不限
    var id: Int = 0
    var label: String = ""
    var labelRu: String = ""
    var text: String = ""
    var children: [LoginCityModel] = []
    
    /// 父级 id
    var pid: Int = -1
    /// 等级，0：国家，1：省份，2：城市
    var level: Int = 0
   
    
    required init() {}
    override func mapping(mapper: HelpingMapper) {
        mapper <<< [
            id <-- "value",
            labelRu <-- "label-ru",
        ]
    }
}
